package cn.jjxx.modules.activiti.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import cn.jjxx.core.utils.SpringContextHolder;
import cn.jjxx.modules.activiti.controller.ActivitiFlowService;

/**
 * @Title: SetAssigneeBySubmitterListener.java .<br>
 * @Package cn.jjxx.modules.activiti.listener .<br>
 * @Description: 设置处理人未流程提交人 .<br>
 * @author 郑成功 .<br>
 * @email a876459952@qq.com .<br>
 * @date 2019-3-22 上午9:51:42.<br>
 * @version V1.0.<br>
 */
public class SetAssigneeBySubmitterListener implements TaskListener{

	@Override
	public void notify(DelegateTask delegateTask) {
		SpringContextHolder.getBean(ActivitiFlowService.class).setAssigneeBySubmitter(delegateTask);
	}

}
